package com.lenovo.order_service.utils;


public class PageReqVo {
    private Integer pageIndex = 1;
    private Integer pageSize = 10;
    private boolean limitData = false;

    public PageReqVo() {
    }

    public Integer getPageIndex() {
        return this.pageIndex;
    }

    public void setPageIndex(Integer pageIndex) {
        this.pageIndex = pageIndex;
    }

    public Integer getPageSize() {
        return this.pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getPageStart() {
        return (this.pageIndex - 1) * this.pageSize;
    }

    public boolean limitData() {
        return this.limitData;
    }

    public void setLimitData(boolean limitData) {
        this.limitData = limitData;
    }
}

